/**
 * Author:刘敏
 * Date:2022-09-15
 * Description:客户端入口文件
 */
import createApp from './main'
import createStore from '@/store'
const pinia = createStore()
const { app, router } = createApp()
app.use(pinia)

router.isReady().then(() => {
  if (window.__INITIAL_STATE__) {
    pinia.state.value = JSON.parse(window.__INITIAL_STATE__)
  }
  console.log(router.currentRoute)
  console.log(pinia.state.value)
  app.mount('#app')
})